<?php 
    require ("./php_componentes.php");
    //require ("./php_procedures.php");
    $json = array("success" => false, "msj" => "Las variables fueron mal asignadas","html"=>"");
//    $tipo = filter_input(INPUT_POST, 'tipo_');  
    $gestor_ = filter_input(INPUT_POST, 'gestor_');
  
    if($gestor_ != NULL)
    {  
//        if(isset($_SESSION)) 
//            session_destroy(); 
//        session_start();
//        $_SESSION["GESTOR"] = $gestor_;
        if($gestor_ == "EXP.exe")
        {  
            $json["html"] .= llenaConfiguracionExport();
                    
            $json['msj'] = "Exportando"; 
        }
        else 
            $json['msj'] = "Otro ".$tipo; 
        $json['success'] = true;
    }  
    $json["html"] .= '<center><button class="btn btn-default" onclick="atraseando()">Atras</button> &nbsp &nbsp &nbsp <button class="btn btn-default" onclick="respaldoLogico()">Respaldar</button></center>';
    print(json_encode($json));
